/**
 * @(#)TaskActionResultEnum.java 2016年11月20日
 * Copyright(C) 2016 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 抖音type状态
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
public enum DouyingStepTypeStatusEnum {
	
	_6(6, "根据抖音号查找uid"), 
	_7(7, "关注用户"), 
	_8(8, "获取抖音用户发表的作品列表"), 
	_9(9, "点赞"),
	_10(10, "发表评论"),
	_25(25, "提交个人视频日志"),
	_26(26, "视频播放量"),
	_27(27, "分享");

	private int type;
	private String name;

	private DouyingStepTypeStatusEnum(int type, String name) {
		this.type = type;
		this.name = name;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	private static Map<Integer, DouyingStepTypeStatusEnum> map = new HashMap<Integer, DouyingStepTypeStatusEnum>();

	static {
		for (DouyingStepTypeStatusEnum statusEnum : DouyingStepTypeStatusEnum.values()) {
			map.put(statusEnum.type, statusEnum);
		}
	}

	public static DouyingStepTypeStatusEnum valueOf(int type) {
		return map.get(type);
	}

	public static Map<Integer, DouyingStepTypeStatusEnum> getMap() {
		return map;
	}
}
